package com.authority.vo;

import java.util.List;

public class PageVO<T> {

	private List<T> result;

	private int pageIndex;

	private int totalNumber;

	private int pageSize;

	private Long totalElements;

	/**
	 * 最终展示用排序字段
	 */
	private String orderByProperty;

	/**
	 * 指定排序字段排序类型，0：升序 1：降序
	 */
	private int orderByType;

	public List<T> getResult() {
		return result;
	}

	public void setResult(List<T> result) {
		this.result = result;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getTotalNumber() {
		return totalNumber;
	}

	public void setTotalNumber(int totalNumber) {
		this.totalNumber = totalNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Long getTotalElements() {
		return totalElements;
	}

	public void setTotalElements(Long totalElements) {
		this.totalElements = totalElements;
	}

	public String getOrderByProperty() {
		return orderByProperty;
	}

	public void setOrderByProperty(String orderByProperty) {
		this.orderByProperty = orderByProperty;
	}

	public int getOrderByType() {
		return orderByType;
	}

	public void setOrderByType(int orderByType) {
		this.orderByType = orderByType;
	}
}
